package org.demo.patten.command;

/**
 * @author zhuj
 * @date 2025/3/29
 * @apiNote
 */
public class RemoteControl {
    private Command command;
    public void setCommand(Command command) {
        this.command = command;
    }
    public void pressButton() {
        command.execute();
    }
}
